package com.example.demo.config

import com.example.demo.interseptor.AuthInterceptor
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer


@Configuration
class AuthConfig : WebMvcConfigurer {
    /**
     * 添加拦截器
     */
//    override fun addInterceptors(registry: InterceptorRegistry) {
//        val excludePath = listOf("/login", "/refresh","/bedside/bedCard")
//
//        registry.addInterceptor(AuthInterceptor()).excludePathPatterns(excludePath)
//
//    }

}